package cn.oa.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 员工 实体类
 */
public class Employee implements Serializable {
    private static final long serialVersionUID = 3641909905530980786L;
    private Integer id;
    private String employeeNo;
    private String password;
    private String name;
    private String email;
    private Integer deptId;
    private Date entryTime;

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", employeeNo='" + employeeNo + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", deptId=" + deptId +
                ", entryTime=" + entryTime +
                ", positionId=" + positionId +
                ", photo='" + photo + '\'' +
                ", department='" + department + '\'' +
                ", position='" + position + '\'' +
                '}';
    }

    private Integer positionId;
    private String photo;
    private String department;
    private String position;

    public Employee(){}
    public Employee(Integer id, String employeeNo, String password, String name, String email, Integer deptId, Date entryTime, Integer positionId, String photo, String department, String position) {
        this.id = id;
        this.employeeNo = employeeNo;
        this.password = password;
        this.name = name;
        this.email = email;
        this.deptId = deptId;
        this.entryTime = entryTime;
        this.positionId = positionId;
        this.photo = photo;

        this.department = department; //部门名称
        this.position = position; //职位名称
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmployeeNo() {
        return employeeNo;
    }

    public void setEmployeeNo(String employeeNo) {
        this.employeeNo = employeeNo;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Date getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }

    public Integer getPositionId() {
        return positionId;
    }

    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
}
